.class public Lcom/instagram/android/nux/s;
.super Ljava/lang/Object;
.source "FacebookLoginResponse.java"


# instance fields
.field public final a:I

.field public final b:Lcom/instagram/android/model/b/e;

.field public final c:Ljava/lang/String;

.field public final d:Ljava/lang/String;

.field public final e:Ljava/lang/String;

.field public final f:Ljava/lang/String;


# direct methods
.method public constructor <init>(ILcom/instagram/android/model/b/e;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 88
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 89
    iput p1, p0, Lcom/instagram/android/nux/s;->a:I

    .line 90
    iput-object p2, p0, Lcom/instagram/android/nux/s;->b:Lcom/instagram/android/model/b/e;

    .line 91
    iput-object p4, p0, Lcom/instagram/android/nux/s;->d:Ljava/lang/String;

    .line 92
    iput-object p3, p0, Lcom/instagram/android/nux/s;->c:Ljava/lang/String;

    .line 93
    iput-object p5, p0, Lcom/instagram/android/nux/s;->e:Ljava/lang/String;

    .line 94
    iput-object p6, p0, Lcom/instagram/android/nux/s;->f:Ljava/lang/String;

    .line 95
    return-void
.end method

.method public static a(Lcom/fasterxml/jackson/databind/JsonNode;)Lcom/instagram/android/nux/s;
    .locals 9
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 22
    const/4 v1, 0x0

    .line 23
    const-string v0, "code"

    invoke-virtual {p0, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v0

    .line 24
    if-eqz v0, :cond_0

    .line 25
    invoke-virtual {v0}, Lcom/fasterxml/jackson/databind/JsonNode;->asInt()I

    move-result v1

    .line 29
    :cond_0
    const-string v0, "email"

    invoke-virtual {p0, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v0

    .line 30
    if-eqz v0, :cond_8

    .line 31
    invoke-virtual {v0}, Lcom/fasterxml/jackson/databind/JsonNode;->asText()Ljava/lang/String;

    move-result-object v0

    .line 35
    :goto_0
    const-string v3, "token"

    invoke-virtual {p0, v3}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v3

    .line 36
    if-eqz v3, :cond_7

    .line 37
    invoke-virtual {v3}, Lcom/fasterxml/jackson/databind/JsonNode;->asText()Ljava/lang/String;

    move-result-object v6

    .line 42
    :goto_1
    const-string v3, "fb_me"

    invoke-virtual {p0, v3}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v4

    .line 43
    if-eqz v4, :cond_6

    .line 44
    const-string v3, "name"

    invoke-virtual {v4, v3}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v3

    .line 45
    if-eqz v3, :cond_5

    .line 46
    invoke-virtual {v3}, Lcom/fasterxml/jackson/databind/JsonNode;->asText()Ljava/lang/String;

    move-result-object v3

    .line 48
    :goto_2
    const-string v5, "email"

    invoke-virtual {v4, v5}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v5

    .line 49
    if-eqz v5, :cond_1

    .line 50
    invoke-virtual {v5}, Lcom/fasterxml/jackson/databind/JsonNode;->asText()Ljava/lang/String;

    move-result-object v0

    .line 52
    :cond_1
    const-string v5, "username"

    invoke-virtual {v4, v5}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v4

    .line 53
    if-eqz v4, :cond_4

    .line 54
    invoke-virtual {v4}, Lcom/fasterxml/jackson/databind/JsonNode;->asText()Ljava/lang/String;

    move-result-object v4

    move-object v5, v0

    .line 59
    :goto_3
    invoke-static {}, Lcom/instagram/android/service/f;->a()Lcom/instagram/android/service/f;

    move-result-object v7

    .line 61
    :try_start_0
    const-string v0, "logged_in_user"

    invoke-virtual {p0, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v0

    .line 62
    if-nez v0, :cond_2

    .line 63
    const-string v0, "user"

    invoke-virtual {p0, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v0

    .line 65
    :cond_2
    if-eqz v0, :cond_3

    .line 66
    const-class v8, Lcom/instagram/android/model/b/e;

    invoke-virtual {v7, v0, v8}, Lcom/fasterxml/jackson/databind/ObjectMapper;->treeToValue(Lcom/fasterxml/jackson/a/v;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b/e;
    :try_end_0
    .catch Lcom/fasterxml/jackson/a/p; {:try_start_0 .. :try_end_0} :catch_0

    :goto_4
    move-object v2, v0

    .line 71
    :goto_5
    new-instance v0, Lcom/instagram/android/nux/s;

    invoke-direct/range {v0 .. v6}, Lcom/instagram/android/nux/s;-><init>(ILcom/instagram/android/model/b/e;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-object v0

    .line 68
    :catch_0
    move-exception v0

    goto :goto_5

    :cond_3
    move-object v0, v2

    goto :goto_4

    :cond_4
    move-object v4, v2

    move-object v5, v0

    goto :goto_3

    :cond_5
    move-object v3, v2

    goto :goto_2

    :cond_6
    move-object v4, v2

    move-object v3, v2

    move-object v5, v0

    goto :goto_3

    :cond_7
    move-object v6, v2

    goto :goto_1

    :cond_8
    move-object v0, v2

    goto :goto_0
.end method


# virtual methods
.method public a()Z
    .locals 1

    .prologue
    .line 98
    iget v0, p0, Lcom/instagram/android/nux/s;->a:I

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public b()Z
    .locals 2

    .prologue
    const/4 v0, 0x1

    .line 102
    iget v1, p0, Lcom/instagram/android/nux/s;->a:I

    if-ne v1, v0, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public c()Z
    .locals 2

    .prologue
    .line 106
    iget v0, p0, Lcom/instagram/android/nux/s;->a:I

    const/4 v1, 0x5

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public d()Z
    .locals 2

    .prologue
    .line 110
    iget v0, p0, Lcom/instagram/android/nux/s;->a:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
